package com.redis.springbootredis.service;

import com.redis.springbootredis.entity.Course;

import java.util.List;

/**
 * @author
 * @create 2020-10-30 12:01
 */
public interface CourseService {

    Course getCourseByCid(Integer cid);
    //带分页的查询所有数据
    List<Course> getCourseByLimit(Integer pageIndex, Integer pageSize);

    void addCourse(Course course);

    void removeCourse(Integer cid);

    void updateCourse(Integer cid,String cname);
}
